import { RouteRecordRaw } from 'vue-router';

const childrens: RouteRecordRaw[] = [];
const homeChildrenPages = import.meta.globEager('./**/*.ts');

Object.keys(homeChildrenPages).forEach((path) => {
  const name = path.substring(path.lastIndexOf('/') + 1);
  if (name !== 'index.ts') {
    childrens.push(...homeChildrenPages[path].default);
  }
});
export default childrens;
